<?php if ( !defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' ); ?>
<ul class="tab">
    <li><a href="<?php my_url('rent', 'room', 'all'); ?>"<?php if($type == 'all'){ ?> class="active"<?php } ?>>全部</a></li>
    <li><a href="<?php my_url('rent', 'room', 'personal'); ?>"<?php if($type == 'personal'){ ?> class="active"<?php } ?>>个人</a></li>
    <li><a href="<?php my_url('rent', 'room', 'agent'); ?>"<?php if($type == 'agent'){ ?> class="active"<?php } ?>>经纪</a></li>
    <?php if(chk_permission('publishrent')){ ?>
    <li class="r"><a href="<?php my_url('publish', 'rent'); ?>">免费发布出租信息&raquo;</a></li>
    <?php } ?>
    <?php if(chk_permission('publishbuy')){ ?>
    <li class="r"><a href="<?php my_url('publish', 'sell'); ?>">免费发布出售信息&raquo;</a></li>
    <?php } ?>
</ul>
<div class="c"></div>
<div class="extra">
    <a href="<?php my_url('rent'); ?>">全部室型</a> &raquo;
    <b><?php echo $roomData['name']; ?></b>
</div>
<table class="list">
    <?php if ( empty( $infoData ) ) { ?>
    <tr class="empty">
        <td>暂没有任何信息</td>
    </tr>
    <?php } else { ?>
    <?php foreach($infoData as $single){ ?>
    <tr>
        <td class="i">
            <a href="<?php my_url('post', 'view', $single['id']); ?>" class="title"><?php echo $single['title']; ?></a>
            <span><a href="<?php my_url('rent', 'zone', $single['zone']); ?>"><?php echo $single['zonename']; ?></a>-<?php echo $single['road']; ?></span>
        </td>
        <td class="m"><?php echo number_format($single['amount'], 2); ?></td>
        <td class="h"><?php echo $single['roomname']; ?></td>
        <td class="t"><?php echo my_dateformat($single['addtime']); ?></td>
    </tr>
    <?php } ?>
    <?php } ?>
</table>
<?php echo $pagination; ?>
<div class="c"></div>
</div>